package com.bdth.bdthcms.vo;

import java.math.BigDecimal;

/**
 * 首页收款和总金额模型
 */
public class SysMoney {
    private BigDecimal receive;
    private BigDecimal total;
    private String receiveValue;
    private String totalValue;

    public BigDecimal getReceive() {
        return receive;
    }

    public void setReceive(BigDecimal receive) {
        this.receive = receive;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public SysMoney() {
    }

    public SysMoney(BigDecimal receive, BigDecimal total) {
        this.receive = receive;
        this.total = total;
    }

    public SysMoney(String receiveValue, String totalValue) {
        this.receiveValue = receiveValue;
        this.totalValue = totalValue;
    }

    public String getReceiveValue() {
        return receiveValue;
    }

    public void setReceiveValue(String receiveValue) {
        this.receiveValue = receiveValue;
    }

    public String getTotalValue() {
        return totalValue;
    }

    public void setTotalValue(String totalValue) {
        this.totalValue = totalValue;
    }

    public SysMoney(BigDecimal receive, BigDecimal total, String receiveValue, String totalValue) {
        this.receive = receive;
        this.total = total;
        this.receiveValue = receiveValue;
        this.totalValue = totalValue;
    }

    public SysMoney transform(){
        this.receiveValue = String.format("%.2f",receive.doubleValue()/10000.00)+"万元";
        this.totalValue = String.format("%.2f",total.doubleValue()/10000.00)+"万元";
        return this;
    }
}
